SHELL = /bin/sh
prefix = /usr/local
exec_prefix = ${prefix}

ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
 lib_arch = lib64
else
 lib_arch = lib
endif


LIB_DIR = ${exec_prefix}/${lib_arch}

all:
	
	@python setup.py install
	install amd.py $(LIB_DIR)/python2.6/dist-packages/
	
clean:
	rm *~

uninstall:
	rm $(prefix)/lib/python2.6/dist-packages/amd.*
	rm $(prefix)/lib/python2.6/dist-packages/_pycpuid.so	
	rm $(prefix)/lib/python2.6/dist-packages/pycpuid.*
	rm $(prefix)/lib/python2.6/dist-packages/pycpuid-*
